<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String appPath = request.getContextPath();
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<body ontouchstart>
	<header class="contHeader">
		<div class="contOHeader">
			<c:if test="${type == 0 }">
				<h1>修改手机号</h1>
			</c:if>
			<c:if test="${type == 1 }">
				<h1>修改邮箱</h1>
			</c:if>
			<div class="contOHeadBack">
				<a href="javascript:;" onclick="reloadHtml();">
					<img src="${staticPath}/images/back2.png">
				</a>
			</div>
		</div>
	</header>
	<input type="hidden" name="type" id="type" value="${type }" />
	<input type="hidden" name="verify" id="verify" value="${verify }" />
	<input type="hidden" name="loginname" id="loginname" value="${loginname }" />
	<input type="hidden" id="showImageCode" name="showImageCode" value="${showImageCode }" />
	<div class="weui_cells weui_cells_form">
		<div class="weui_cells_title">
			<c:if test="${verify == 0 }">
				手机号码：
			</c:if>
			<c:if test="${verify == 1 }">
				邮箱：
			</c:if>
			${loginname }
		</div>
		<div class="weui_cell weui_vcode">
			<div class="weui_cell_bd weui_cell_primary">
				<input id='code' class="zc2" type="tel" placeholder="请输入验证码">
			</div>
			<div class="weui_cell_hd">
				<c:if test="${verify == 0 }">
					<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" id="getcode" style="margin:10px 10px 0 0;" onclick="getCodeByMobile()">获取手机验证码</a>
				</c:if>
				<c:if test="${verify == 1 }">
					<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" id="getcode" style="margin:10px 10px 0 0;" onclick="getCodeByEmail()">获取邮箱验证码</a>
				</c:if>
			</div>
		</div>
		<div class="weui_cell zc1">
			<div class="weui_cell_hd">
				<label class="weui_label">
					<img src="${staticPath}/images/zc1.png">
				</label>
			</div>
			<div class="weui_cell_bd weui_cell_primary">
				<c:if test="${type == 0 }">
					<input id='account' name="account" class="weui_input" type="text" placeholder="请输入新手机号">
				</c:if>
				<c:if test="${type == 1 }">
					<input id='account' name="account" class="weui_input" type="text" placeholder="请输入新邮箱地址">
				</c:if>
			</div>
		</div>
		<div class="weui_cell zc1" id="divImageCode">
			<div class="weui_cell_hd" style="width: 50%;padding-right:10px;">
				<input class="weui_input" type="text" id="imagecode" name="imagecode" placeholder="请输入图形验证码">
			</div>
			<div class="weui_cell_hd" style="float: right;margin-left:18px;" onclick="reloadVerifyCode('getImageCode');">
				<img id="getImageCode" src="<%=appPath %>/member/getImageCode.htm" style="width:100%;height:100%;padding-top:0;padding-right:15px;"/>
			</div>
		</div>
		<div class="weui_cell weui_vcode">
			<div class="weui_cell_bd weui_cell_primary">
				<input id='newcode' class="zc2" type="tel" placeholder="请输入验证码">
			</div>
			<div class="weui_cell_hd">
				<c:if test="${type == 0 }">
					<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" id="getcode" style="margin:10px 10px 0 0;" onclick="getCodeByNewMobile()">获取新手机验证码</a>
				</c:if>
				<c:if test="${type == 1 }">
					<a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary" id="getcode" style="margin:10px 10px 0 0;" onclick="getCodeByNewEmail()">获取新邮箱验证码</a>
				</c:if>
			</div>
		</div>
		<div class="weui_btn_area">
			<a href="javascript:;" id='edit' onclick="edit()" class="weui_btn weui_btn_primary">确定</a>
		</div>
	</div>
</body>